package com.magic.mapper;

import com.magic.entity.Stock;
import org.springframework.stereotype.Component;

@Component
public interface StockMapper {

    //根据商品id查询库存信息的方法
    Stock checkStock(Integer id);

    //根据商品的id扣除库存
    int updateSale(Stock stock);
}
